package com.onepiece.shipelves.common.vo;

import java.math.BigDecimal;

public class RangeItem {

    //左区间值
    private BigDecimal leftRange;
    //右区间值
    private BigDecimal rightRange;
    //左区间是否包含临界值
    private Boolean leftFrontier;
    //左区间是否包含临界值
    private Boolean rightFrontier;

    public BigDecimal getLeftRange() {
        //目前业务long最大值就可以
        return leftRange == null ? new BigDecimal(Long.MIN_VALUE) : leftRange;
    }

    public void setLeftRange(BigDecimal leftRange) {
        this.leftRange = leftRange;
    }

    public BigDecimal getRightRange() {
        return rightRange == null ? new BigDecimal(Long.MAX_VALUE) : rightRange;
    }

    public void setRightRange(BigDecimal rightRange) {
        this.rightRange = rightRange;
    }

    public Boolean getLeftFrontier() {
        return leftFrontier;
    }

    public void setLeftFrontier(Boolean leftFrontier) {
        this.leftFrontier = leftFrontier;
    }

    public Boolean getRightFrontier() {
        return rightFrontier;
    }

    public void setRightFrontier(Boolean rightFrontier) {
        this.rightFrontier = rightFrontier;
    }
}